

let {Plane, Vector3,Ray} = require('../../editor/src/math');


let origin = new Vector3(-2,-1,-1);
let dir = new Vector3(1,1,1).normalize();
let ray = new Ray(origin,dir);

let normal = new Vector3(0,0,1);
let plane = new Plane(normal,0);

console.log(ray.intersectPlane(plane));
